package com.zhl.microservcie.order.feign;

import com.zhl.microservcie.order.pojo.Item;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: zhl-microservcie-parent
 * @author: zhl
 * @create: 2019-03-05
 **/
@FeignClient("item-server")
public interface ItemFeignClient {

    @GetMapping("/item/{id}")
    public Item queryItemById(@PathVariable("id") Long id);

}
